<%@page import="com.neiquan.backstage.common.util.Sessions"%>
<%@page import="com.neiquan.backstage.pub.bsc.dao.po.AdminUser"%>
<%@page import="org.hibernate.Session"%>
<%@page import="com.neiquan.backstage.convenience_service.ConvenienceServiceService"%>
<%@page import="com.neiquan.backstage.pub.bsc.dao.po.ConvenienceService"%>
<%@page import="com.neiquan.backstage.pub.bsc.dao.po.Event"%>
<%@page import="java.util.List"%>
<%@page import="com.neiquan.backstage.common.CommonService"%>
<%@page import="com.neiquan.backstage.common.util.SpringContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
ApplicationContext appCtx = SpringContextUtils.getApplicationContext();
CommonService commonService = appCtx.getBean(CommonService.class);
String memberId1=request.getParameter("memberId");
int memberId=Integer.parseInt(memberId1);
ConvenienceServiceService convenienceServiceService = appCtx.getBean(ConvenienceServiceService.class);
List<ConvenienceService> convenienceServiceList = convenienceServiceService.queryAll(memberId);
pageContext.setAttribute("convenienceServiceList", convenienceServiceList);
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>便利服务</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0">
	<section class="mt">
	<c:forEach var="convenienceService" items="${pageScope.convenienceServiceList}">
		<a class="apply_detail apply" style="height:40px;line-height:50px;" href="convenience_service_detail.jsp?id=${convenienceService.id}">
			<span class="fl pl10">${convenienceService.name}</span>
			<span class="fr facilitate-right"></span>
		</a>
		<section class="line"></section>
		</c:forEach>
	</section>
</body>
<script src="js/responsive.js"></script>
</html>
